/**
 * The database package of the application.
 */
package fr.umlv.m2.android.quizz.database;

/**
 * This class defines the question object.
 * 
 * @author Gambouele Bertrand.
 * @author Viravout Alexandre.
 */
public class Question {
	/**
	 * The question id.
	 */
	private long id;
	/**
	 * The question text.
	 */
	private String questionText;
	/**
	 * The question answer id.
	 */
	private long answerId;
	/**
	 * The question level id.
	 */
	private long levelId;
	/**
	 * The question theme id.
	 */
	private long themeId;
	
	/**
	 * Create the question object.
	 */
	public Question () {}
	
	/**
	 * Create the question object.
	 * 
	 * @param questionText the question text.
	 * @param levelId the level id.
	 * @param themeId the theme id.
	 */
	public Question(String questionText, long levelId, long themeId) {
		this.questionText = questionText;
		this.levelId = levelId;
		this.themeId = themeId;
	}
	
	/**
	 * Sets the question id.
	 * 
	 * @param id the question id.
	 */
	public void setId(long id) {
		this.id = id;
	}
	
	/**
	 * Gets the question id.
	 * 
	 * @return the question id.
	 */
	public long getId() {
		return this.id;
	}
	
	/**
	 * Sets the question text.
	 * 
	 * @param question the question text.
	 */
	public void setQuestionText(String questionText) {
		this.questionText = questionText;
	}
	
	/**
	 * Gets the question text.
	 * 
	 * @return the question text.
	 */
	public String getQuestionText() {
		return this.questionText;
	}
	
	/**
	 * Sets the question answer id.
	 * 
	 * @param id the answer id.
	 */
	public void setAnswerId(long id) {
		this.answerId = id;
	}
	
	/**
	 * Gets the question answer id.
	 * 
	 * @return the answer id.
	 */
	public long getAnswerId() {
		return this.answerId;
	}
	
	/**
	 * Sets the question level id.
	 * 
	 * @param id the level id.
	 */
	public void setLevelId(long id) {
		this.levelId = id;
	}
	
	/**
	 * Gets the question level id.
	 * 
	 * @return the level id.
	 */
	public long getLevelId() {
		return this.levelId;
	}
	
	/**
	 * Sets the question theme id.
	 * 
	 * @param id the theme id.
	 */
	public void setThemeId(long id) {
		this.themeId = id;
	}
	
	/**
	 * Gets the question theme id.
	 * 
	 * @return the theme id.
	 */
	public long getThemeId() {
		return this.themeId;
	}
}
